<?php

use common\modules\pms\models\backend\Project;
use common\widgets\jQueryGantt;
use common\widgets\tree\TreeView;

/* @var $this yii\web\View */
/** @var string $title */
/** @var Project $project */
/** @var array $treeConfig */

$this->title = $title;
$this->params['breadcrumbs'][] = $this->title;

?>
<div class="category-index">
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li class="active"><a href="#tab_1" data-toggle="tab">任务管理</a></li>
<!--            <li><a href="#tab_2" data-toggle="tab">甘特图</a></li>-->
        </ul>
        <div class="tab-content">
            <div class="tab-pane active" id="tab_1">
                <?php echo TreeView::widget($treeConfig); ?>
            </div>

            <div class="tab-pane" id="tab_2">
                <?php /*echo jQueryGantt::widget([
                    'name' => 'Gantt',
                    'clientSetting' => [
                        'source' => $project->getTaskGanttConfig(),
                    ],
                ])*/ ?>
            </div>

        </div>
        <!-- /.tab-content -->
    </div>
    <!-- nav-tabs-custom -->
</div>
